﻿<cfscript>
/** 
* DataBase Frameworks - Sequence
* 
* @hint "DataBase Frameworks - Sequence - ProgramPlan" 
*/ 

component
	displayname="public.service.db.senate.sequence.ProgramPlan" 
	output=false 
	accessors=true 
	{

	property type="string" name="ClassID" hint="班级编号";
	property type="string" name="CourseID" hint="课程ID";
	
	/**
	* @hint "初始化对象"
	*/
	public function init() output=false {
		return this;
	}
	
	/**
	* @hint "自定义主键规则"
	*/
	public string function getID() output=false {
		
		var nextID = getClassID() & getCourseID();
	/* 
			主键生成规则 
			
			培养方案号16位 10位班级代码 + 6位课程号

			Unique: CLS_ID, CID
		*/
		return nextID;
	}

}

</cfscript>